<div class="users index">
	<h2><?php __('Users');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('primer_nombre');?></th>
			<th><?php echo $this->Paginator->sort('segundo_nombre');?></th>
			<th><?php echo $this->Paginator->sort('primer_apellido');?></th>
			<th><?php echo $this->Paginator->sort('segundo_apellido');?></th>
			<th><?php echo $this->Paginator->sort('tipo_documento');?></th>
			<th><?php echo $this->Paginator->sort('identificacion');?></th>
			<th><?php echo $this->Paginator->sort('group_id');?></th>
			<th><?php echo $this->Paginator->sort('genero');?></th>
			<th><?php echo $this->Paginator->sort('telefono');?></th>
			<th><?php echo $this->Paginator->sort('direccion');?></th>
			<th><?php echo $this->Paginator->sort('correo');?></th>
			<th><?php echo $this->Paginator->sort('honorarios');?></th>
			<th><?php echo $this->Paginator->sort('fecha_vinculacion');?></th>
			<th><?php echo $this->Paginator->sort('ultimo_acceso');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('modified');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($users as $user):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $user['User']['id']; ?>&nbsp;</td>
		<td><?php echo $user['User']['primer_nombre']; ?>&nbsp;</td>
		<td><?php echo $user['User']['segundo_nombre']; ?>&nbsp;</td>
		<td><?php echo $user['User']['primer_apellido']; ?>&nbsp;</td>
		<td><?php echo $user['User']['segundo_apellido']; ?>&nbsp;</td>
		<td><?php echo $user['User']['tipo_documento']; ?>&nbsp;</td>
		<td><?php echo $user['User']['identificacion']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($user['Group']['id'], array('controller' => 'groups', 'action' => 'view', $user['Group']['id'])); ?>
		</td>
		<td><?php echo $user['User']['genero']; ?>&nbsp;</td>
		<td><?php echo $user['User']['telefono']; ?>&nbsp;</td>
		<td><?php echo $user['User']['direccion']; ?>&nbsp;</td>
		<td><?php echo $user['User']['correo']; ?>&nbsp;</td>
		<td><?php echo $user['User']['honorarios']; ?>&nbsp;</td>
		<td><?php echo $user['User']['fecha_vinculacion']; ?>&nbsp;</td>
		<td><?php echo $user['User']['ultimo_acceso']; ?>&nbsp;</td>
		<td><?php echo $user['User']['created']; ?>&nbsp;</td>
		<td><?php echo $user['User']['modified']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $user['User']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $user['User']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New User', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Groups', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Apoyos', true), array('controller' => 'apoyos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Apoyo', true), array('controller' => 'apoyos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Asistencias', true), array('controller' => 'asistencias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Asistencia', true), array('controller' => 'asistencias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Centro Apoyo Escolares', true), array('controller' => 'centro_apoyo_escolares', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Centro Apoyo Escolare', true), array('controller' => 'centro_apoyo_escolares', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Experiencias', true), array('controller' => 'experiencias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Experiencia', true), array('controller' => 'experiencias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Formaciones', true), array('controller' => 'formaciones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Formacione', true), array('controller' => 'formaciones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Observaciones Apoyos', true), array('controller' => 'observaciones_apoyos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Observaciones Apoyo', true), array('controller' => 'observaciones_apoyos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Planeaciones', true), array('controller' => 'planeaciones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Planeacione', true), array('controller' => 'planeaciones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Seguimientos', true), array('controller' => 'seguimientos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Seguimiento', true), array('controller' => 'seguimientos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Soportes', true), array('controller' => 'soportes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Soporte', true), array('controller' => 'soportes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Equipos Operativos', true), array('controller' => 'equipos_operativos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Equipos Operativo', true), array('controller' => 'equipos_operativos', 'action' => 'add')); ?> </li>
	</ul>
</div>